﻿<UserControl x:Class="SLExportUserViews.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="600" d:DesignWidth="800" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" Background="#FFF6F8FA">
    <Canvas x:Name="LayoutRoot" Background="#FFF6F8FA" Height="600" Width="800" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

        <!-- Create a simple TabControl in XAML. -->
        <sdk:TabControl x:Name="tab1" Canvas.Top="-1" Canvas.Left="-1" Height="600" Width="800" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
            <sdk:TabItem x:Name="tabExport" Header="Export" Background="#FFF6F8FA">
                <Grid Background="#FFF6F8FA">
                    <Button Content="Export" Height="23" HorizontalAlignment="Left" Margin="6,534,0,0" Name="btnExport" VerticalAlignment="Top" Width="776" Click="btnExport_Click" />
                    <sdk:DataGrid Background="#FFF6F8FA" Name="dgUserQueriesExport" VerticalAlignment="Bottom" AutoGenerateColumns="False" Height="495" Margin="0,0,0,35">
                    </sdk:DataGrid>
                    <Button  Content="Refresh" Height="23" HorizontalAlignment="Left" Margin="712,4,0,0" Name="btnRefresh" VerticalAlignment="Top" Width="72" Click="btnRefresh_Click">
                    </Button>
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem x:Name="tabImport" Header="Import">
                <Grid Background="#FFF6F8FA">
                    <Button Content="ImportXML" Height="23" HorizontalAlignment="Left" Margin="0,534,0,0" Name="btnImport" VerticalAlignment="Top" Width="409" Click="btnImport_Click" />
                    <sdk:DataGrid Background="#FFF6F8FA" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="dgUserQueriesImport" AutoGenerateColumns="False" Margin="0,0,0,44">
                    </sdk:DataGrid>
                    <Button Content="Import All To CRM" Height="23" HorizontalAlignment="Right" Margin="0,534,6,0" Name="btnImportToCRM" VerticalAlignment="Top" Width="367" Click="btnImportToCRM_Click" />
                </Grid>
            </sdk:TabItem>
        </sdk:TabControl>

    </Canvas>
</UserControl>
